package com.ld.security.auth.common.base.po;

import com.ld.security.common.core.anno.CrptKey;
import com.ld.security.common.core.base.po.SuperPo;
import com.ld.security.common.core.constant.CrptCondition;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class LoginPo implements SuperPo {

    @ApiModelProperty("账号")
    @NotBlank
    private String username;

    @ApiModelProperty("密码")
    @NotBlank
    @CrptKey(CrptCondition.hash)
    private String password;

    @ApiModelProperty("验证码")
    private String code;
}